package cn.yzfy.common.model.dto;

import cn.yzfy.common.base.dto.BaseLongIdDTO;
import cn.yzfy.common.enums.CategorizeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;


import java.io.Serial;

/**
 * 用户帖子表编辑数据DTO对象
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class EditPostDTO extends BaseLongIdDTO {
  
  @Serial
  private static final long serialVersionUID = -1;
  
  /**
   * 头像URL
   */
  @Schema(description = "头像URL")
  private String avatarUrl;
  
  /**
   * 分类
   */
  @Schema(description = "分类")
  private CategorizeEnum categorize;
  
  /**
   * 收藏数
   */
  @Schema(description = "收藏数")
  private Integer collectNum;
  
  /**
   * 评论数
   */
  @Schema(description = "评论数")
  private Integer commentNum;
  
  /**
   * 帖子内容
   */
  @Schema(description = "帖子内容")
  private String content;
  
  /**
   * 删除标记
   */
  @Schema(description = "删除标记")
  private Byte deleted;
  
  /**
   * 图片URL
   */
  @Schema(description = "图片URL")
  private String imageUrl;
  
  /**
   * 点赞数
   */
  @Schema(description = "点赞数")
  private Integer likeNum;
  
  /**
   * 位置
   */
  @Schema(description = "位置")
  private String location;
  
  /**
   * 帖子ID
   */
  @Schema(description = "帖子ID")
  private Long id;
  
  /**
   * 备注
   */
  @Schema(description = "备注")
  private String remark;
  
  /**
   * 标签
   */
  @Schema(description = "标签")
  private String tag;
  
  /**
   * 用户ID
   */
  @Schema(description = "用户ID")
  private Long userId;
  
  /**
   * 用户名
   */
  @Schema(description = "用户名")
  private String username;
}